package com.wzt.gift.clients;

import com.wzt.gift.fallback.UserClientFallbackFactory;
import com.wzt.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Zenith
 * @Date 2022/10/19 9:33
 * @Version 1.0
 */
@FeignClient(value = "GIFT-USER", fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @GetMapping("/user/login/{loginId}")
    AjaxResult getByLoginId(@PathVariable("loginId") Long loginId);
}
